/* 联系页面样式 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 联系信息部分 */
.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    transition: transform 0.3s;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    padding: 1rem;
    background: var(--hover-color);
    border-radius: 50%;
}

.contact-details h3 {
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.contact-details p,
.contact-details a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--link-color);
}

.qr-code {
    width: 150px;
    height: 150px;
    margin-top: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.qr-code:hover {
    transform: scale(1.1);
}

/* 联系表单部分 */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--link-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--link-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

/* 社交媒体部分 */
.social-media {
    text-align: center;
    margin-bottom: 3rem;
}

.social-media h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-method {
        padding: 0.8rem;
    }

    .contact-icon {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .social-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info,
.contact-form,
.social-media {
    animation: slideIn 0.6s ease-out forwards;
}

/* 夜间模式适配 */
[data-theme="dark"] .contact-method {
    background: var(--card-bg);
}

[data-theme="dark"] .contact-icon {
    background: var(--hover-color);
}

[data-theme="dark"] .social-link {
    background: var(--card-bg);
}

[data-theme="dark"] .social-link:hover {
    background: var(--hover-color);
} 